<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'iphone-iphone-form',
	'enableAjaxValidation'=>false,
)); ?>
	
	<!-- <p class="note">Fields with <span class="required">*</span> are required.</p> -->

	<?php //echo $form->errorSummary($modeli); ?>

	<div class="row">
		<?php echo $form->labelEx($model->iphone,'notification_content'); ?>
		<?php echo $form->textField($model->iphone,'notification_content'); ?>
		<?php echo $form->error($model->iphone,'notification_content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model->iphone,'button_label'); ?>
		<?php echo $form->textField($model->iphone,'button_label'); ?>
		<?php echo $form->error($model->iphone,'button_label'); ?>
	</div>

	<!-- <div class="row">
		<?php echo $form->labelEx($modeli,'badge'); ?>
		<?php echo $form->textField($modeli,'badge'); ?>
		<?php echo $form->error($modeli,'badge'); ?>
	</div> -->

	<div class="row">
		<?php echo $form->labelEx($modeli,'sound'); ?>
		<?php echo $form->textField($modeli,'sound'); ?>
		<?php echo $form->error($modeli,'sound'); ?>
	</div>

	<div class="row">
		<?php 
		$viewData = array
               (
                  
                  'model'=>$model,
                  'form'=>$form
               
               );
		
         $Tabs     = array 
               (
                  'tab1'=>array('title'=>'Launch app','content'=>' =) '),
                  'tab2'=>array('title'=>'open url','view'=>'/ajax/iph_url'),
                  'tab3'=>array('title'=>'custom data','view'=>'/ajax/iph_data'),
				  'tab4'=>array('title'=>'rich notification','view'=>'/ajax/iph_rich'),
				  
               );



		$this->widget('CTabView', array('tabs'=>$Tabs, 'viewData'=>$viewData, 'activeTab'=>'tab1')); ?>
		
	</div>

	

	

	


	<div class="row buttons">
		<?php echo CHtml::ajaxSubmitButton('GO','appcamel/index.php?r=ajax/create_msg',array(
    'type' => 'POST',
    'update' => '#camel',
),
array(
   'type' => 'submit'
)); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->